//
//  NSDate+ZUtilities.m
//  WeClubs
//
//  Created by Zed Link on 10/4/2017.
//  Copyright © 2017 Zed. All rights reserved.
//

#import "NSDate+ZUtilities.h"

@implementation NSDate (ZUtilities)

+ (long long)zTimeIntervalSince1970
{
    NSTimeInterval interval = [[self date] timeIntervalSince1970];
    long long milliSeconds = interval * 1000;
    
    return milliSeconds;
}

+ (instancetype)zDateWithTimeInterval:(long long)milliSeconds
{
    NSTimeInterval interval = milliSeconds / 1000;
    return [self dateWithTimeIntervalSince1970:interval];
}

@end
